import axios from 'axios'

var request = axios.create({
    baseURL: 'http://localhost:3100'
})

export const editUser = (data) => {
    return request({
        method: "post",
        url: '/users',
        data
    })
}
export const login = (data) => {
    return request({
        url: '/users',
        params: {
            ...data
        }
    })
}
export const userCheck = (token) => (request.get('/setting', {
    headers: { token }
}))